<template>
  <view class="my-container">
    <my-login v-if="!token" ></my-login>
    
    <my-userinfo v-else></my-userinfo>
    
  </view>
</template>

<script>
  import  {mapState} from 'vuex'
  import mixin from "../../mixin/tabBarBrage.js"
  export default {
    mixins: [mixin],
    computed:{
      ...mapState('user',['token'])
    },
    
    data() {
      return {
        options: [{
          text: '删除',
          style: {
            backgroundColor: '#dd524d'
          }
        }]
      }
    },
    methods: {
      onClick(e) {
        console.log('点击了' + (e.position === 'left' ? '左侧' : '右侧') + e.content.text + '按钮')
      },
      swipeChange(e, index) {
        console.log('当前状态：' + open + '，下标：' + index)
      },
      
      qq(){
         console.log(1111222)
      }
    }
  }
</script>

<style lang="scss">
page,
.my-container {
  height: 100%;
}
</style>
